ConcurrentStatelessReplayLatestSubjectAsync class¶
Defined in
Namespace: ReactiveUI.Extensions.Async.Subjects
Assembly: ReactiveUI.Extensions.dll
Full name: ReactiveUI.Extensions.Async.Subjects.ConcurrentStatelessReplayLatestSubjectAsync<T>
Modifiers: public sealed
Summary¶
Represents an asynchronous subject that replays the latest value to new observers and forwards notifications to all
observers concurrently without maintaining internal state.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Class hierarchy
classDiagram
class ConcurrentStatelessReplayLatestSubjectAsync~T~
class BaseStatelessReplayLastSubjectAsync~T~
BaseStatelessReplayLastSubjectAsync~T~ <|-- ConcurrentStatelessReplayLatestSubjectAsync~T~
Inherits from: BaseStatelessReplayLastSubjectAsync
Remarks¶
This subject is designed for concurrent scenarios where notifications to observers should be delivered in parallel. It does not buffer or store a sequence of values, but only replays the most recent value (if any) to new subscribers. Thread safety is ensured for concurrent observer notifications. If a notification operation is canceled, not all observers may receive the notification.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Represents an asynchronous subject that replays the latest value to new observers and forwards notifications to all observers concurrently without maintaining internal state. |
Methods¶
| Name | Summary |
|---|---|
| OnNextAsyncCore | Asynchronously notifies all observers in the collection with the specified value. |
| OnErrorResumeAsyncCore | Asynchronously notifies all observers of an error and resumes processing, if possible. |
| OnCompletedAsyncCore | Asynchronously notifies all observers that the sequence has completed, forwarding the completion signal to each observer. |